To use WinSCP in VBA, install the .NET assembly, register it for COM, add the reference in VBA, and use custom error handling with On Error ... Using from VBA · Event Handlers
The WinSCP .NET assembly is a wrapper for WinSCP's scripting interface, allowing .NET code to connect to remote machines and manipulate files, ... Downloading and Installing... · List of all examples · PowerShell · Session Class